package HomeWork._2024_3_18.src;

public class Main {
    public static void main(String[] args) {
        Car car = new Car();
        Truck truck = new Truck();

        car.drive();
        car.honkHub(2);

        truck.drive();
        truck.honkHub(4);


        Circle circle = new Circle(3);
        Rectangle rectangle = new Rectangle(4,5);

        System.out.println("圆形的面积为:"+circle.calculateArea());
        System.out.println("矩形的面积为:"+rectangle.calculateArea());


    }
}
